|
|
|
|
|
|
|
This section looks at some of the most commonly used date functions. Figure 10.2 shows you the example from this chapter that illustrates these functions. |
|
|
|
|
|
|
|
|
Figure 10.2
Date function examples. |
|
|
|
|
|
|
|
|
Examples Filename: Dates.frm |
|
|
|
|
|
|
|
|
For each of the functions listed in this section, you can click the corresponding button in the example. |
|
|
|
|
|
|
|
|
This function returns a variant thats a date/timestamp. Its based on the current system date and time. Heres an example: |
|
|
|
 |
|
|
|
|
Private Sub cmdNow_Click ()
Dim dtDate As Date
Me.Cls
' Get System Date/Time
dtDate = Now
Me.Print "Now = " & dtDate
End Sub |
|
|
|
|
|